package com.sanben.common.web.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author: cyh
 * @description: 基础树泛型类
 * @date: 2020/8/03 10:57
 */
@Data
public class Tree<T> {

    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("父级id")
    private Integer parentId;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("子类")
    private List<T> childList;
}
